<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>客户列表</title>
<base target="_self">
<%@include file="/skins/jsp/loadCss.jsp"%>
<script type="text/javascript">
		var selectCustom = function(ctId, ctName, ctPhoto, ctBank,
				ctAccounts, ctPost) {
			var re = ctId+';'+ctName;
			window.close();
			window.returnValue = re;
		}
	</script>
</head>
<body>
<div class="ch-box-lite">
		<h2>客户列表</h2>
		<s:form method="POST">
			客户名称：<s:textfield name="ctName"></s:textfield>
			<s:submit value="查询客户" cssClass="ch-btn ch-btn-small"></s:submit>
		</s:form>
		<table class="ch-datagrid">
			<thead>
				<tr>
					<th align="center" width="5%">序号</th>
					<th scope="row" width="20%">客户名称</th>
					<th width="8%">客户区域</th>
					<th width="10%">客户电话</th>
					<th width="10%">开户银行</th>
					<th width="5%">操作</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="customerList" status="st">
					<tr
						<s:if test="#st.isEven()">style="BACKGROUND: #f8f8f8"</s:if>>
						<td align="center"><s:property value="%{#st.count}" />
						</td>
						<td><s:property value="ctName" />
						</td>
						<td><s:property value="ctPhoto" />
						</td>
						<td><s:property value="ctPhoto" />
						</td>
						<td><s:property value="ctBank" />
						</td>
						<td>
							<button class="ch-btn ch-btn-small" onclick="selectCustom('<s:property value="ctId" />','<s:property value="ctName" />','<s:property value="ctPhoto" />','<s:property value="ctBank" />','<s:property value="ctAccounts" />','<s:property value="ctPost" />')">选择</button>
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>
</body>
</html>